<!--公用选择框弹窗-->
<template>
    <div>
        <BasicModal v-bind="$attrs" @register="register" width="1200px" title="选择门店" wrapClassName="j-user-select-modal"
            @ok="handleOk" destroyOnClose>
            <XlCustomerStoreInfoList ref="storeListRef"></XlCustomerStoreInfoList>
        </BasicModal>
    </div>
</template>
<script lang="ts" setup>
import { defineComponent, unref, ref, watch, computed } from 'vue';
import { BasicModal, useModalInner } from '/@/components/Modal';
import XlCustomerStoreInfoList from '../storeinfo-2/XlCustomerStoreInfoList.vue';
const [register, { closeModal }] = useModalInner(async (data) => { 

})
// 获取子组件引用 
const storeListRef = ref();
// Emits声明
const emit = defineEmits(['update:visible', 'submit']);
function handleOk() {
    // 从 XlCustomerStoreInfoList 获取选中值 
    const selectedStores = storeListRef.value.selectedRowKeys;
    alert("sss")
    debugger
    // 向父组件（UserAgentModal）传递数据 
    emit('submit', selectedStores);
}

</script>